<?php
@header('Content-Type: text/html; charset=UTF-8');
?>
    <!DOCTYPE html>
    <html lang="zh-cn">
    <head>
        <meta charset="utf-8"/>
        <meta name="viewport" content="width=device-width, initial-scale=1"/>
        <title><?php echo $title ?></title>
        <link href="//cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
        <script src="//cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
        <script src="//cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

        <!--[if lt IE 9]>
        <script src="//cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
        <script src="/bootstrap/bootstrap-datetimepicker.zh-CN.js"></script>
        <![endif]-->
        <script src="/bootstrap/bootstrap-datetimepicker.min.js"></script>
        <script src="/bootstrap/bootstrap-datetimepicker.js"></script>
        <script src="/bootstrap/bootstrap-datetimepicker.zh-CN.js"></script>

        <link href="/bootstrap/bootstrap-datetimepicker.min.css" rel="stylesheet">
        <link href="/bootstrap/bootstrap-datetimepicker.css" rel="stylesheet">
    </head>
    <?php 
    	include("../includes/common.php");
        $htbj = $DB -> get_row("select * from auth_config where `k`='auth_htbj'");
	?>
    
    
    
    	<style>
	body {
	     background: url("http://api.btstu.cn/sjbz/zsy.php?lx=suiji") no-repeat center center fixed;
         background-size: cover;
		/*background: linear-gradient(45deg, #CCFFFF, #FFCCCC);*/
	}
	</style>
    
<body>
<?php if ($islogin == 1) { ?>
    <nav class="navbar navbar-fixed-top navbar-default"style="background:#000000; color:#FFFFFF">
        <div class="container">
            <div class="navbar-header" >
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
                        aria-expanded="false" aria-controls="navbar">
                    <span class="sr-only">导航按钮</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="./" style="color:#FFFFFF">后台管理</a>
            </div><!-- /.navbar-header -->
            
        <div id="navbar" class="collapse navbar-collapse" >
           <ul class="nav navbar-nav navbar-right">
                <li class="<?php echo checkIfActive('index,') ?>">
                    <a href="./" style="color:#FFFFFF"><span class="glyphicon glyphicon-home" ></span> 平台首页</a>
                </li>
                <?php if ($udata['uid'] == 1) { ?>

                    <li class="<?php echo checkIfActive('config') ?>">
                            <a href="./config.php"style="color:#FFFFFF"><span class="glyphicon glyphicon-cog"></span>小程序广告配置</a>
                    </li>
                    <li class="<?php echo checkIfActive('gdlist') ?>">
                            <a href="./gdlist.php"style="color:#FFFFFF"><span class="glyphicon glyphicon-cog"></span>更多小程序配置</a>
                    </li>        
                    <li class="<?php echo checkIfActive('gdlist') ?>">
                            <a href="https://www.wobbt.cn"style="color:#FFFFFF"><span class="glyphicon glyphicon-cog"></span>官网</a>
                    </li>
                    <?php } ?>
                    <li><a href="./login.php?logout" style="color:#FFFFFF"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
            </ul>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container -->
    </nav><!-- /.navbar -->
<?php } ?>